package deployr.core;

import deployr.domain.*;

public class ExportUpdate {
	private final StringBuilder stringBuilder = new StringBuilder();

	private void token(String string) {
		stringBuilder.append(string).append(":");
	}
	
	@Override
	public String toString() {
		return stringBuilder.toString();
	}

	public ExportUpdate(IUpdate update) {
		token("update");
		token(update.getProjectKey());
		token(update.getUpdateKey());
		token(update.index());
	}

}
